import axios from 'axios';

export function getAllOrderList() {
    return axios('getAllOrderList');
}
export function getOrderDetail(data) {
    return axios.post('getOrderDetail', data);
}
export function updateOrder(ID, content) {
    let data = {
        id: ID
    }
    for (const key in content) {
        if (Object.hasOwnProperty.call(content, key)) {
            data[key] = content[key];
        }
    }
    return axios.post('updateOrder', data);
}